﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Infrastructure.Annotations;

namespace Setme.Domain.Repository.Mapping
{
    internal partial class RoleMapping
    {
        partial void RoleMappingAppend()
        {
            this.Property(t => t.RoleName).HasColumnAnnotation
            (
                IndexAnnotation.AnnotationName,
                new IndexAnnotation
                (
                    new IndexAttribute() { IsUnique = true }
                )
            );
        }
    }
}
